package com.zjs.vueMenu.controller;


import com.zjs.config.Result;
import com.zjs.vueMenu.service.VueMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjs
 * @since 2020-07-06
 */
@RestController
@RequestMapping("/vueMenu/vue-menu")
public class VueMenuController {

    @Autowired
    private VueMenuService vueMenuService;

    /**
     * 不分层显示左侧菜单
     */
    @GetMapping("/menuList")
    public Result<?> menuList(){

//       List<VueMenu> list =  vueMenuService.menuList();
        return Result.ok(vueMenuService.menuList());
    }

}

